﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CVM.Core;

namespace CVM.Data.Repositories.Base
{
    public abstract class RepositoryFactory
    {
        public static IRepository GetRepositoryType(Entities.DataEntityBase dataEntity)
        {
            switch (dataEntity.Type)
            {
                case DataEntityType.Candidate:
                    return new CandidateRepository();
                break;
            }

            return null;
        }
    }
}
